// 新增提示弹窗 耿琰 20220422
import React from 'react'
// ===================================================================== global declare
const { $Lazy } = window
// ===================================================================== Lazy
const Modal 		= $Lazy.state(()=>import('@antd/modal'))
const ImportFile 	= $Lazy.load(()=>import('#private/common/import'))
// ===================================================================== component
class Index extends React.Component{
	state = {
		data:[],
	}
	
	model = {}
	
	open = () => {
		this.modal.open()
	}
	
	render(){
		return (
			<Modal
				title		= '提示'
				width 		= { 500 }
				onRef		= { ref => this.modal = ref }
				noOk
				btnSuffix	= { (
					<ImportFile 
						api			= 'qt-comp-item/importcompany' 
						btnConfig	= {{size:'middle', className:'ml20', ghost:false}}
						param 		= { {qt_temp_id:this.props.keys, modular: 126} }
						onOk		= {()=>{
							this.props.onRefresh()
							this.modal.close()
						}}
					/>
				)}
			>
				<div className='fx lh50 mb20'>
					您导入的物价，导入后将进入到“模板物价审核”进行审核，请耐心等待。
				</div>
			</Modal>
		)
	}
}

export default Index